SET VER=01.00.00
SET COMPILE=RELEASE
set ARCHIVEFOLDER=\\echidna\ifinity\Installs
ECHO OFF

if NOT x%1 == x""  set COMPILE=%1

REM delete the install directory for fresh files every time
del install /Q /F /S
md install

SET PROD=DnnDash.SimpleDashboard
set PRODVER=%PROD%_%VER%

ECHO ================== Start Copy %PROD% ====================================================
ECHO ON
rem copy the eula
copy legal\*.* install\

copy %Prod%\bin\%COMPILE%\DnnDash*.dll Install\
if "%COMPILE%" == "DEBUG" copy %Prov%\bin\%COMPILE%\dnnDash*.pdb Install\

copy %prod%\*.dnn Install\

SET INSTALL_ZIP=%PROD%_%VER%_Install.zip
SET DEBUG_INSTALL_ZIP=%PROD%_%VER%_Debug_Install.zip
SET ARCHIVE_ZIP=%PROD%_01*_Install.zip


md %ARCHIVEFOLDER%\%prodver%
md %ARCHIVEFOLDER%\%prodver%\Archive
if "%COMPILE%" == "RELEASE" move %ARCHIVEFOLDER%\%prodver%\%ARCHIVE_ZIP% %ARCHIVEFOLDER%\%prod%\Archive

rem zip up the install file
ECHO OFF
ECHO ================ Install Files ========================================================
ECHO ON
if "%COMPILE%" == "RELEASE" "C:\program files\pkware\pkzipc.exe" -add Install\%INSTALL_ZIP% install\*.* -excl=%INSTALL_ZIP%
if "%COMPILE%" == "DEBUG" "C:\program files\pkware\pkzipc.exe" -add Install\%DEBUG_INSTALL_ZIP% install\*.* -excl=%DEBUG_INSTALL_ZIP%
ECHO ON
if "%COMPILE%" == "RELEASE" copy install\%INSTALL_ZIP% \\echidna\ifinity\Installs\%prodver%\
if "%COMPILE%" == "DEBUG" copy install\%DEBUG_INSTALL_ZIP% \\echidna\ifinity\Installs\%prodver%\
ECHO OFF





